import AdminLayout from './components/AdminLayout.vue';
import routerAppConfig from './views/AppConfig';
import routerOrderMng from './views/OrderMng';
import routerTransMng from './views/TransMng';
import routerUserMng from './views/UserMng';
import routerWithMng from './views/WithMng';

const routes = [
  {
    path: '/admin',
    redirect: '/admin/user',
    component: AdminLayout,
    children: [
      ...routerUserMng,
      ...routerOrderMng,
      ...routerAppConfig,
      ...routerTransMng,
      ...routerWithMng,
    ],
  },
];

export default routes;
